package Bridge.impl;

import Bridge.service.Logger;
import Bridge.service.Service;
import Bridge.service.DbOperator;

/**
 * @author chengjunjie
 * @date 2025-09-10
 */

public class UserService implements Service {

    private DbOperator dbOperator;

    private Logger logger;

    public UserService(DbOperator dbOperator,Logger logger){
        this.dbOperator=dbOperator;
        this.logger=logger;
    }
    @Override
    public void update() {
        dbOperator.insert("{员工A数据}");
        logger.info("数据更新成功");
    }

    @Override
    public void init() {
        logger.info("UserService 已初始化完成✅");
    }
}
